/* Copyright (c) 2014.*/
package au.com.cba.workitem.serviceImpl;

import java.util.logging.Level;
import java.util.logging.Logger;

import au.com.cba.workitem.service.WorkItemCompletionCallbackService;
import au.com.cba.workitem.service.WorkItemService;


/**
 * The Class WorkItemServiceImpl.
 * @author Magesh Ravichandran
 */
public class WorkItemServiceImpl  implements WorkItemService,Runnable {
	private final static Logger LOGGER = Logger
			.getLogger(WorkItemServiceImpl.class.getName());
	/* (non-Javadoc)
	 * @see au.com.cba.workitem.service.WorkItemService#execute(au.com.cba.workitem.service.WorkItemCompletionCallbackService)
	 */
	public void execute(WorkItemCompletionCallbackService callback) {
		callback.complete();
	}

	/* (non-Javadoc)
	 * @see java.lang.Runnable#run()
	 */
	public void run() {
		 String name = Thread.currentThread().getName();
		 LOGGER.log(Level.INFO,name+" started");
	    }
		
	}


